
App({
  http({
         method = "GET",
         url,
         data = {}
       }) {
    return new Promise((resolve, reject) => {
      wx.request({
        method,
        url,
        data,
        success(res) {
          resolve(res)
        },
        fail(e) {
          reject(e)
        }
      })
    })
  },
  globalData: {
    userInfo: null
  }
})
